﻿using System.Collections.Generic;
using PSE.Deployment.SetupBase.Configuration;

namespace PSE.Deployment.SetupBase
{
    public class ActionComparer : IEqualityComparer<ActionBase>
    {
        public bool Equals(ActionBase x, ActionBase y)
        {
            return (x.Id + x.GroupId) == (y.Id + y.GroupId);
        }

        public int GetHashCode(ActionBase obj)
        {
            return (obj.Id + obj.GroupId).GetHashCode();
        }
    }
}
